package com.jiaai.shop.store.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.shop.store.entity.SOrder;
import com.jiaai.shop.store.mapper.SOrderMapper;
import com.jiaai.shop.store.service.ISOrderService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jiaai.shop.util.PageUtil;
import com.jiaai.wgj.common.page.RPage;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author
 * @since 2018-04-12
 */
@Service
public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> implements ISOrderService {

    @Override
    public RPage<Object> seachOrder(Page page) {
        page.setRecords(baseMapper.seachOrderAll(page));
        return new PageUtil<Object>().convertRpage(page);
    }
}
